home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _GUICtrlIpAddressSet.au3 < prev    next >
Text File  |  2007-09-08  |  576b  |  28 lines

  1. #include <GuiIPAddress.au3>
  2.  
  3. Opt("MustDeclareVars", 1)
  4.  
  5. _Main()
  6.  
  7. Func _Main()
  8.     Local $msg, $hgui, $button, $hIPAddress
  9.     
  10.     $hgui = GUICreate("IP Address Control Create Example", 300, 150)
  11.     
  12.     $hIPAddress = _GUICtrlIpAddressCreate ($hgui, 10, 10, 125, 30, $WS_THICKFRAME)
  13.     
  14.     $button = GUICtrlCreateButton("Exit", 100, 100, 100, 25)
  15.     _GUICtrlIpAddressSet ($hIPAddress, "24.168.2.128")
  16.     GUISetState(@SW_SHOW)
  17.     
  18.     While 1
  19.         $msg = GUIGetMsg()
  20.         
  21.         Select
  22.             
  23.             Case $msg = $GUI_EVENT_CLOSE Or $msg = $button
  24.                 Exit
  25.         EndSelect
  26.     WEnd
  27. EndFunc   ;==>_Main
  28.